import { defineComponent } from 'vue';
import GLayout from '/@/shared/components/g-layout/index.vue';
import GTree from '/@/shared/components/g-tree/index.vue';
import OrganizationUnitTreePanel from './organization-unit-tree-panel/organizaion-unit-tree-panel.vue';
import { PagedListingComponentBase } from '/@/shared/component-base';
import OrganizationUnitMembersPanel from './organization-unit-members-panel/organization-unit-members-panel.vue';
import OrganizationUnitRolePanel from './organization-unit-role-panel/organization-unit-role-panel.vue';
import { TeamOutlined } from '@ant-design/icons-vue';
export default defineComponent({
  mixins: [PagedListingComponentBase],
  components: {
    GLayout,
    GTree,
    OrganizationUnitTreePanel,
    OrganizationUnitMembersPanel,
    OrganizationUnitRolePanel,
    TeamOutlined,
  },
  data() {
    return {
      currentTab: '1',
      // 选择的树结构
      selectedTree: null,
      showtab: false,
    };
  },
  computed: {},
  methods: {
    /**
     * 选择树结构
     */
    selectedNodeFunc(data) {
      console.log(data);
      this.selectedTree = data;
    },
  },
});
